﻿@model Pku.BookStore.Model.CategoryModel
@{
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
    ViewBag.Title = "图书分类-后台管理";
}
<link href="/Content/user.self.css" rel="stylesheet" type="text/css" />
<script src="/Scripts/jsAddress.js" type="text/javascript"></script>
<div class="right">
    <div class="o-mt">
        <h2>
            图书分类</h2>
    </div>
    <div class="m" id="baseinfo">
        <div class="mc">
            <div class="i-m">
                <div class="i-mc">
                    @using (Html.BeginForm())
                    {
                        <div class="form">
                            <div class="item">
                                <span class="label">分类ID：</span>
                                <div class="fl">
                                    @{
                        if (Model.CategoryID == 0)
                        {
                                        @Html.TextBox("CategoryID", "", new { @class = "text", @disabled = "true" });
                                        @Html.TextBox("Act", "A", new { @style = "display:none" })
                        }
                        else
                        {
                                        @Html.TextBox("CategoryID", Model.CategoryID, new { @class = "text", @disabled = "true" });
                                        @Html.TextBox("Act", "E", new { @style = "display:none" })
                        }
                                    }
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label"><em>*</em>分类名称：</span>
                                <div class="fl">
                                    <div>
                                        @Html.TextBox("CategoryName", Model.CategoryName, new { @class = "text" })
                                    </div>
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">&nbsp;</span>
                                <div class="fl">
                                    <input id="submitBtn" type="image" src="@Url.Content("~/images/btn_sub.gif")"  onclick="return btnClick();" style=" margin-right:80px" />
                                    <input id="submitBtn" type="image" src="@Url.Content("~/images/btn_back.gif")"  onclick="javascript:history.go(-1);" />
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="item">
                                <span class="label">&nbsp;</span>
                                <div class="fl">
                                    @Html.ValidationMessage("Info")
                                </div>
                                <div class="clr">
                                </div>
                            </div>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>
